package com.assignwork.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName VoyageInfoSubmitDTO
 * @Description 船舶航次信息新增或修改DTO
 * @Author dujianyu
 * @Date 2023/8/15 15:13
 */
@Data
public class VoyageInfoSubmitDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "航次信息ID")
    private Long voyageId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "船舶预报ID")
    private Long shipId;

    @ApiModelProperty(name = "进出口")
    private String impExp;

    @ApiModelProperty(name = "航次")
    private String voyageNo;

    @ApiModelProperty(name = "签证吨")
    private BigDecimal visaTon;

    @ApiModelProperty(value = "船头")
    private String prowHawser;

    @ApiModelProperty(value = "船尾")
    private String sternHawser;

    @ApiModelProperty(name = "预结")
    private Integer isBudget;

    @ApiModelProperty(name = "完船")
    private Integer isFinish;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ApiModelProperty(name = "停时")
    private Date residenceTime;

    @ApiModelProperty(value = "小货类")
    private String liteCargoType;

    /** 船预做吨 */
    @ApiModelProperty(value = "船预做吨")
    private BigDecimal shipPreTon;

    /** 船结吨 */
    @ApiModelProperty(value = "船结吨")
    private BigDecimal shipFinishTon;

    /** 是否显示 */
    @ApiModelProperty(value = "是否显示")
    private String isShow;

}
